]> dgit.raspbian.org Git - gnome-shell.git/commit
extensionSystem: Sort extensions before loading
authorSundeep Mediratta <smedius@gmail.com>
Wed, 11 Oct 2023 10:31:19 +0000 (06:31 -0400)
committerMarge Bot <marge-bot@gnome.org>
Sat, 16 Dec 2023 17:33:47 +0000 (17:33 +0000)
commit3b4e3af6fad277705eba03b3c47dbc9503ef51a8
treeb1712fe7cc773009f8679049fb2f7ebf6eb216df
parent38d9026bc7c06b82265f0ec11bbbc09ce0bf62d4
extensionSystem: Sort extensions before loading

When an extension is disabled, we "rebase" all extensions that
were enabled afterwards, in case they override the same method.

This can be fairly expensive, in particular when disabling many
extensions at once, for instance when locking the screen.

Help with that by sorting extensions by the number of session-modes,
as extensions that support multiple modes are less likely to be
disabled on session mode changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2851>
js/ui/extensionSystem.js